/** <a href="http://www.cpupk.com/decompiler">Eclipse Class Decompiler</a> plugin, Copyright (c) 2017 Chen Chao. **/
package com.minierp.controller;

import com.minierp.dao.DbBackupDao;
import com.minierp.helper.PageHelper;

class DbBackupThread extends Thread {
	private long recordId = 0L;
	private DbBackupDao dbBackupDao;
	private String mysqlPath;
	private String copyName;
	private String dbPort;

	public DbBackupThread(long recordId, DbBackupDao dbBackupDao,
			String mysqlPath, String dbPort, String copyName) {
		this.recordId = recordId;
		this.dbBackupDao = dbBackupDao;
		this.mysqlPath = mysqlPath;
		this.copyName = copyName;
		this.dbPort = dbPort;
	}

	public void run() {
		PageHelper.dbBackup(this.dbBackupDao, this.recordId, this.mysqlPath,
				this.dbPort, this.copyName);
	}
}